package com.yisu.es;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        List<CompletableFuture<?>> futures = new ArrayList<>();
        CompletableFuture<?> completableFuture = CompletableFuture.supplyAsync(() -> {
            System.out.println("hello");
            return "hello";
        });
        futures.add(completableFuture);
        CompletableFuture.allOf();
    }
}